package com.weitu.permission.authority.entity;
import java.io.Serializable;

/**
 * Created by WT on 2017/3/17.
 */
public class AuthorityGroup implements Serializable {
    /**
     * Column: SYS_AUTHORITY_GROUP.id
     */
    private String id;

    /**
     * Column: SYS_AUTHORITY_GROUP.code
     */
    private String code;

    /**
     * Column: SYS_AUTHORITY_GROUP.name
     */
    private String name;

    /**
     * Column: SYS_AUTHORITY_GROUP.remarks
     */
    private String remarks;

    /**
     * Column: SYS_AUTHORITY_GROUP.delState
     */
    private Integer delState;

    /**
     * Column: SYS_AUTHORITY_GROUP.sort
     */
    private Integer sort;

    /**
     * Column: SYS_AUTHORITY_GROUP.addUserId
     */
    private String addUserId;

    /**
     * Column: SYS_AUTHORITY_GROUP.addTime
     */
    private String addTime;

    /**
     * Column: SYS_AUTHORITY_GROUP.updateUserId
     */
    private String updateUserId;

    /**
     * Column: SYS_AUTHORITY_GROUP.updateTime
     */
    private String updateTime;

    /**
     * Table: SYS_AUTHORITY_GROUP
     */
    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Integer getDelState() {
        return delState;
    }

    public void setDelState(Integer delState) {
        this.delState = delState;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getAddUserId() {
        return addUserId;
    }

    public void setAddUserId(String addUserId) {
        this.addUserId = addUserId == null ? null : addUserId.trim();
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime == null ? null : addTime.trim();
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId == null ? null : updateUserId.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        AuthorityGroup authorityGroup = (AuthorityGroup) o;

        if (id != null ? !id.equals(authorityGroup.id) : authorityGroup.id != null) return false;
        if (code != null ? !code.equals(authorityGroup.code) : authorityGroup.code != null) return false;
        if (name != null ? !name.equals(authorityGroup.name) : authorityGroup.name != null) return false;
        if (remarks != null ? !remarks.equals(authorityGroup.remarks) : authorityGroup.remarks != null) return false;
        if (delState != null ? !delState.equals(authorityGroup.delState) : authorityGroup.delState != null) return false;
        if (sort != null ? !sort.equals(authorityGroup.sort) : authorityGroup.sort != null) return false;
        if (addUserId != null ? !addUserId.equals(authorityGroup.addUserId) :authorityGroup.addUserId != null) return false;
        if (addTime != null ? !addTime.equals(authorityGroup.addTime) : authorityGroup.addTime != null) return false;
        if (updateUserId != null ? !updateUserId.equals(authorityGroup.updateUserId) : authorityGroup.updateUserId != null) return false;
        return updateTime != null ? updateTime.equals(authorityGroup.updateTime) : authorityGroup.updateTime == null;

    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (code != null ? code.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (remarks != null ? remarks.hashCode() : 0);
        result = 31 * result + (delState != null ? delState.hashCode() : 0);
        result = 31 * result + (sort != null ? sort.hashCode() : 0);
        result = 31 * result + (addUserId != null ? addUserId.hashCode() : 0);
        result = 31 * result + (addTime != null ? addTime.hashCode() : 0);
        result = 31 * result + (updateUserId != null ? updateUserId.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return " AuthorityGroup{" +
                "id='" + id + '\'' +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", remarks='" + remarks + '\'' +
                ", delState=" + delState +
                ", sort=" + sort +
                ", addUserId='" + addUserId + '\'' +
                ", addTime='" + addTime + '\'' +
                ", updateUserId='" + updateUserId + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }
}
